package com.crl.module.connecter.decoder
{
	import com.crl.core.IDispose;
	import com.crl.module.connecter.core.INetSender;
	import com.crl.module.connecter.handler.INetHandler;
	import com.crl.module.connecter.model.CommandInfo;
	
	
	/**
	 *  解析器接口,用于解析一条命令;
	 * @author crl
	 * 
	 */	
	public interface IDecoder extends IDispose
	{
		function onData(comandInfo:CommandInfo,server:INetSender):void;
		function decode():void;
		function getType():String;
		
		function set manager(handler:INetHandler):void;
		
		function clear():void
	}
}